package com.ambimmort.shj.action.generalfile;

import com.ambimmort.shj.service.generalfile.ReadWeb2UISeivice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by 师梁 on 2015/7/30.
 */
@Controller("/action/common/get_web.do")
public class ReadWeb2UI {
    @Autowired
    private ReadWeb2UISeivice readWeb2UISeivice;
    @RequestMapping("/action/common/get_web.do")
    @ResponseBody
    public String  get_web(
            HttpServletRequest request, @RequestParam("pageCount") String pageCount, @RequestParam("page") String page, @RequestParam("MessageType") String MessageType,
            @RequestParam("policy_instance") String policy_instance, @RequestParam("iDisplayStart") String iDisplayStart, @RequestParam("iDisplayLength") String iDisplayLength
    ){

            return  readWeb2UISeivice.read(pageCount,page,MessageType,policy_instance,iDisplayStart,iDisplayLength);

    }
}
